package com.example.demo.export.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

/**
 * 类描述:
 *
 * @author jianweiwang
 * @version v1.0
 * @link wjw@choicesoft.com.cn
 * @date 2018/12/11 13:55
 **/
@Data
public class Person {
    private String id;
    private String name;
    private int age;
    private String gender;
    private String address;

    public static List<Person> getData(){
        List<Person> list = new ArrayList<>();
        Person person;
        for (int i = 0; i < 10; i++) {
            person = new Person();
            person.setId(UUID.randomUUID().toString());
            person.setName("wjwei_"+i);
            person.setAge(i);
            person.setGender("男");
            person.setAddress("济南");
            list.add(person);
        }
        return list;
    }
}
